package com.yc.class_attendance.utils;


import android.util.Log;

import com.yc.class_attendance.entity.AttendanceResutl;
import com.yc.class_attendance.entity.ListBean;

import java.util.Comparator;

/**
 * 项目名：智慧课牌
 * Created by ${LiuShaoQing} on 2017/10/18.
 * Time: 2017/10/18 19:42
 */

public class sortClass implements Comparator {
/*    @Override
    public int compare(Object obj1, Object obj2) {
       ListBean t1 = (ListBean) obj1;
       ListBean t2 = (ListBean) obj2;
        int flag=0;
        if(t1!=null && t2!=null){
             flag = t2.getmCurrenTime().compareTo(t1.getmCurrenTime());
        }

        return flag;
    }*/
    public int compare(Object arg0,Object arg1){
        AttendanceResutl.CourseBean.ListBean user0 = (AttendanceResutl.CourseBean.ListBean) arg0;
        AttendanceResutl.CourseBean.ListBean user1 = (AttendanceResutl.CourseBean.ListBean) arg1;
        Log.d("commmm",user0.toString());
        Log.d("commmm",user1.toString());
        int flag = user1.getmCurrenTime().compareTo(user0.getmCurrenTime());
        return flag;
    }
}
